import { neon } from "@neondatabase/serverless";

// Bun automatically loads the DATABASE_URL from .env.local
// Refer to: https://bun.net.cn/docs/runtime/env for more information
const sql = neon(
  "postgresql://meme-db_owner:G8pHe5rbmtQi@ep-purple-haze-a1bul9nl.ap-southeast-1.aws.neon.tech/meme-db?sslmode=require"
);

const rows = await sql`SELECT version()`;

console.log(rows[0].version);
